package com.spring.component.link;

/**
 * 单向链表
 * 
 * @param <T>
 */
public class SingleNode<T> extends Node {

  public SingleNode(SingleNode<T> next, T t) {
    this.next = next;
    this.value = t;
  }

  public SingleNode(T t) {
    this.value = t;
    this.next = null;
  }

}
